<template>
    <footer class="footer" v-if="len">
      <!-- 统计 -->
      <span class="todo-count">合 计:<strong> {{len }} </strong></span>
      <!-- 清空 -->
      <button class="clear-completed" @click="clear">
        清空任务
      </button>
    </footer>
</template>
<script>
export default{
    props:['len'],
    methods:{
        clear(){this.$emit('clear')}
    }
}
</script>